home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / necko / nsITransportSecurityInfo.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  102 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsITransportSecurityInfo.idl
  3.  */
  4.  
  5. #ifndef __gen_nsITransportSecurityInfo_h__
  6. #define __gen_nsITransportSecurityInfo_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsITransportSecurityInfo */
  19. #define NS_ITRANSPORTSECURITYINFO_IID_STR "68e21b66-1dd2-11b2-aa67-e2b87175e792"
  20.  
  21. #define NS_ITRANSPORTSECURITYINFO_IID \
  22.   {0x68e21b66, 0x1dd2, 0x11b2, \
  23.     { 0xaa, 0x67, 0xe2, 0xb8, 0x71, 0x75, 0xe7, 0x92 }}
  24.  
  25. class NS_NO_VTABLE nsITransportSecurityInfo : public nsISupports {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ITRANSPORTSECURITYINFO_IID)
  29.  
  30.   /* readonly attribute unsigned long securityState; */
  31.   NS_IMETHOD GetSecurityState(PRUint32 *aSecurityState) = 0;
  32.  
  33.   /* readonly attribute wstring shortSecurityDescription; */
  34.   NS_IMETHOD GetShortSecurityDescription(PRUnichar * *aShortSecurityDescription) = 0;
  35.  
  36. };
  37.  
  38. /* Use this macro when declaring classes that implement this interface. */
  39. #define NS_DECL_NSITRANSPORTSECURITYINFO \
  40.   NS_IMETHOD GetSecurityState(PRUint32 *aSecurityState); \
  41.   NS_IMETHOD GetShortSecurityDescription(PRUnichar * *aShortSecurityDescription); 
  42.  
  43. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  44. #define NS_FORWARD_NSITRANSPORTSECURITYINFO(_to) \
  45.   NS_IMETHOD GetSecurityState(PRUint32 *aSecurityState) { return _to GetSecurityState(aSecurityState); } \
  46.   NS_IMETHOD GetShortSecurityDescription(PRUnichar * *aShortSecurityDescription) { return _to GetShortSecurityDescription(aShortSecurityDescription); } 
  47.  
  48. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  49. #define NS_FORWARD_SAFE_NSITRANSPORTSECURITYINFO(_to) \
  50.   NS_IMETHOD GetSecurityState(PRUint32 *aSecurityState) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSecurityState(aSecurityState); } \
  51.   NS_IMETHOD GetShortSecurityDescription(PRUnichar * *aShortSecurityDescription) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShortSecurityDescription(aShortSecurityDescription); } 
  52.  
  53. #if 0
  54. /* Use the code below as a template for the implementation class for this interface. */
  55.  
  56. /* Header file */
  57. class nsTransportSecurityInfo : public nsITransportSecurityInfo
  58. {
  59. public:
  60.   NS_DECL_ISUPPORTS
  61.   NS_DECL_NSITRANSPORTSECURITYINFO
  62.  
  63.   nsTransportSecurityInfo();
  64.  
  65. private:
  66.   ~nsTransportSecurityInfo();
  67.  
  68. protected:
  69.   /* additional members */
  70. };
  71.  
  72. /* Implementation file */
  73. NS_IMPL_ISUPPORTS1(nsTransportSecurityInfo, nsITransportSecurityInfo)
  74.  
  75. nsTransportSecurityInfo::nsTransportSecurityInfo()
  76. {
  77.   /* member initializers and constructor code */
  78. }
  79.  
  80. nsTransportSecurityInfo::~nsTransportSecurityInfo()
  81. {
  82.   /* destructor code */
  83. }
  84.  
  85. /* readonly attribute unsigned long securityState; */
  86. NS_IMETHODIMP nsTransportSecurityInfo::GetSecurityState(PRUint32 *aSecurityState)
  87. {
  88.     return NS_ERROR_NOT_IMPLEMENTED;
  89. }
  90.  
  91. /* readonly attribute wstring shortSecurityDescription; */
  92. NS_IMETHODIMP nsTransportSecurityInfo::GetShortSecurityDescription(PRUnichar * *aShortSecurityDescription)
  93. {
  94.     return NS_ERROR_NOT_IMPLEMENTED;
  95. }
  96.  
  97. /* End of implementation class template. */
  98. #endif
  99.  
  100.  
  101. #endif /* __gen_nsITransportSecurityInfo_h__ */
  102.